<?php
/**
 * Precarga higchart para poder realizar la grafica a mano
 */
$cs = Yii::app()->getClientScript();
$baseUrl = Yii::app()->theme->baseUrl;
$cs->registerScriptFile($baseUrl . '/js/highcharts.src.js');

Util::tsRegisterAssetJs('modalReport.js');
Util::tsRegisterAssetJs('menu.js');
Util::tsRegisterAssetJs('menuSemanal.js');
?>

<?php
/** @var InfoCartaSemanalController $this */
/** @var InfoCartaSemanal $model */
/** @var AweActiveForm $form */
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
    'type' => 'horizontal',
    'id' => 'info-carta-semanal-form',
    'enableAjaxValidation' => false,
    'action' => $model->isNewRecord ? Yii::app()->baseUrl . "/index.php/carta/infoCartaSemanal/create" :
            Yii::app()->baseUrl . "/index.php/carta/infoCartaSemanal/update/id/" . $_GET['id'],
    'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,),
    'enableClientValidation' => true,
        ));
?>
<div class="row-fluid span7">
    <div class="row-fluid">
        <?php $this->renderPartial('portlets/admin_cartaNutricional', array('submodel' => $submodel)) ?>
    </div>
    <div class="row-fluid">
        <?php
        $this->renderPartial('portlets/menuSemanal', array('model' => $model));
        ?>
    </div>
</div>
<div class="row-fluid span5">
    <?php
    $this->renderPartial('portlets/form_info_carta_semanal', array('model' => $model, 'form' => $form));
    $this->endWidget();
    ?>
</div>
<span></span>


<div id="modalFormulariosNivel1" class="modal hide fade"  style="display: none;" aria-hidden="true"> 
    <div class="modal-header">
        <a class="close"  id="cerrarFormulariosNivel1" data-dismiss="modal">&times;</a>
        <center> <h4 id='nombreAlimento'> Alimentos del menú </h4></center>
    </div>
    <div class="modal-body" id="modaBody">
        <div id="valoresNutricionales">
            <table class="items table table-striped table-bordered table-hover table-advance">
                <tr><th>Variantes Menú</th><th>Nombre</th><th>Medida</th><th>Cantidad</th></tr>
                <tbody id="cuerpoTable"></tbody>
            </table>
        </div>
    </div>
</div>